<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>选择套餐</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="/zhenze/Public/home/css/reset.css"/>
		<link rel="stylesheet" href="/zhenze/Public/home/css/xuanzetaocan.css" />
		<link rel="stylesheet" href="/zhenze/Public/home/css/font-awesome.min.css" />
	</head>
	<body>
		<div class="top">
			<a href="javascript:history.go(-1);"><i class="fa fa-angle-left"></i></a>
			<p>选择套餐</p>
		</div>
		<p class="pt">选择套餐</p>
        <?php if(is_array($res)): $i = 0; $__LIST__ = $res;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="cont">
                <div class="title">
                    <img id="img<?php echo ($vo["set_id"]); ?>" data="<?php echo ($vo["set_id"]); ?>" class="img<?php echo ($vo["set_id"]); ?>" src="/zhenze/Public/home/img/false.png" />
                    <p><?php echo ($vo["set_title"]); ?></p>
                </div>
                <div>
                	<p><?php echo ($vo["set_content_list"]); ?></p>
					<p style="margin-top: 0rem;"><?php echo ($vo["set_content"]); ?></p>
                    <div class="clear"></div>
                </div>
            </div><?php endforeach; endif; else: echo "" ;endif; ?>
		<div class="btns">
            <input type="hidden" name="setmeal_id" id="tnk" value="">
			<button onclick="tiao(1)">快速预约</button>
			<button onclick="tiao(2)">选号预约</button>
           
           
           
		</div>

		<script src="/zhenze/Public/home/js/screenSize.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="/zhenze/Public/home/js/jquery-3.1.1.min.js" ></script>
		<script>
			$(function(){
				$('[id^=img]').each(function(){
					$(this).click(function(){
						$('[id^=img]').attr('src','/zhenze/Public/home/img/false.png');
						$(this).attr('src','/zhenze/Public/home/img/true.png');
						$data=$(this).attr("data");
						$('#tnk').val($data);
						
					});
				});
        	})
			
			function tiao(v){
				var setmeal_id=$("#tnk").val();
				if(setmeal_id.length==0){
					alert("请先选择套餐");
					return false;
				}else{
					if(v==1){
						location.href="<?php echo U('index/fillinfo');?>&setmeal_id="+setmeal_id;
					}else if(v==2){
						location.href="<?php echo U('index/choosetel');?>&setmeal_id="+setmeal_id;
					}
				}
			}
		</script>
	</body>
</html>